package com.jzr.medical.db1.service;

import com.jzr.medical.common.ILayService;
import com.jzr.medical.db1.model.TUser;
import com.jzr.medical.db1.vo.DeptCodeVo;
import com.jzr.medical.db1.vo.UserInfoVo;
import com.jzr.medical.db1.vo.UserMenuVo;
import com.jzr.medical.db1.vo.UserVo;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.List;

public interface UserService extends ILayService<TUser, UserVo,Integer> {
    List<String> getRoleCodesByUserCode(String userCode);
    List<String> getRoleCodesById(Integer id);

    UserDetails getUserDetailByUserCode(String userCode);

    TUser findByUserCode(String userCode);

    Integer getIdByUserCode(String userCode);

    String getPswById(Integer userId);

    Integer changePsw(Integer userId, String oldPsw, String newPsw);

    List<UserMenuVo> getMenuByUserId(Integer userId);

    UserInfoVo getUserInfoVoById(Integer id);

    List<DeptCodeVo> getDeptList(Integer userId);

}
